package cn.changeforyou.web.cloud.auth.util;

import cn.hutool.crypto.digest.DigestUtil;
import cn.hutool.crypto.digest.Digester;

public class AuthUtil {

    /**
     * 密码加密
     * @param password
     * @return
     */
    public static String encryptPassword(String password){
        Digester digester = DigestUtil.digester("sm3");
        String encodePassword = digester.digestHex(password);
        return encodePassword;
    }
}
